import HooksFeedClient from '@/app/(root)/hooks/HooksFeedClient';
import { HooksFeedType } from '@/components/hooksPlayer/constants';

type Props = {
  params: Promise<{ slug: string }>;
  searchParams: Promise<{ [key: string]: string | string[] | undefined }>;
};

export default async function HookProfileFeedPage(props: Props) {
  const params = await props.params;
  const userHandle = params.slug.replace('%40', '');

  return (
    <HooksFeedClient feedId={HooksFeedType.Profile} userHandle={userHandle} />
  );
}
